# MUNGE src/libcommon/Makefile.am
#
# This file is part of the MUNGE Uid 'N' Gid Emporium (MUNGE).
# For details, see <https://dun.github.io/munge/>.

include $(top_srcdir)/Make-inc.mk

TEMPLATE_FILES = \
	munge.7.in \
	# End of TEMPLATE_FILES

SUBSTITUTE_FILES = \
	munge.7 \
	# End of SUBSTITUTE_FILES

EXTRA_DIST = \
	$(TEMPLATE_FILES) \
	# End of EXTRA_DIST

CLEANFILES = \
	$(SUBSTITUTE_FILES) \
	# End of CLEANFILES

$(SUBSTITUTE_FILES): Makefile
	$(AM_V_GEN)$(substitute) < '$(srcdir)/$@.in' > '$(builddir)/$@'

munge.7: munge.7.in

noinst_LTLIBRARIES = \
	libcommon.la \
	# End of noinst_LTLIBRARIES

libcommon_la_CPPFLAGS = \
	-DDATE='"$(DATE)"' \
	-DLOCALSTATEDIR='"$(localstatedir)"' \
	-DRUNSTATEDIR='"$(runstatedir)"' \
	-DSYSCONFDIR='"$(sysconfdir)"' \
	-I$(top_srcdir)/src/libmunge \
	# End of libcommon_la_CPPFLAGS

libcommon_la_SOURCES = \
	common.h \
	daemonpipe.c \
	daemonpipe.h \
	fd.c \
	fd.h \
	license.c \
	license.h \
	log.c \
	log.h \
	m_msg.c \
	m_msg.h \
	munge_defs.h \
	str.c \
	str.h \
	version.c \
	version.h \
	# End of libcommon_la_SOURCES

# For dependencies on DATE.
#
$(srcdir)/libcommon_la-version.lo: Makefile

man_MANS = \
	munge.7 \
	# End of man_MANS
